package lab02.test05;

public class Cube {
    double high;
    double wide;
    double length;

    public Cube() {
    }

    public void setLength(double strength) {
        this.length = strength;
    }

    public double getLength() {
        return length;
    }

    public void setWide(double wide) {
        this.wide = wide;
    }

    public double getWide() {
        return wide;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getHigh() {
        return high;
    }

    public void initialize() {
        high = 0;
        length = 0;
        wide = 0;
        System.out.println("初始化为0！");
    }

    public double Volume() {
        double volume;
        volume = length * wide * high;
        return volume;
    }
}
